home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTFormHook.pas' rev: 3.00
-
- #ifndef AHMTFormHookHPP
- #define AHMTFormHookHPP
- #include <AHMSystem.hpp>
- #include <Windows.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtformhook
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TAHMHookComponent;
- class PASCALIMPLEMENTATION TAHMHookComponent : public Ahmsystem::TAHMSystemsComponent
- {
- typedef Ahmsystem::TAHMSystemsComponent inherited;
-
- private:
- HWND FApplicationHandle;
- HWND FOwnerhandle;
- Controls::TWinControl* FOwnerForm;
-
- protected:
- void *OldWndProc;
- void *NewWndProc;
- virtual void __fastcall Loaded(void);
- void __fastcall HookWin(void);
- void __fastcall UnhookWin(void);
-
- public:
- virtual void __fastcall Hooked(Messages::TMessage &AMsg);
- __fastcall virtual TAHMHookComponent(Classes::TComponent* AOwner);
- __fastcall virtual ~TAHMHookComponent(void);
- __property Controls::TWinControl* OwnerForm = {read=FOwnerForm};
- __property HWND OwnerHandle = {read=FOwnerhandle, nodefault};
- __property HWND ApplicationHandle = {read=FApplicationHandle, nodefault};
- };
-
- typedef void __fastcall (__closure *TAHMHookMessage)(System::TObject* Sender, Messages::TMessage &WndMessage
- );
-
- class DELPHICLASS TAHMFormHook;
- class PASCALIMPLEMENTATION TAHMFormHook : public Ahmtformhook::TAHMHookComponent
- {
- typedef Ahmtformhook::TAHMHookComponent inherited;
-
- private:
- TAHMHookMessage FMessage;
-
- public:
- virtual void __fastcall Hooked(Messages::TMessage &AMsg);
-
- __published:
- __property About ;
- __property TAHMHookMessage OnMessage = {read=FMessage, write=FMessage};
- public:
- /* TAHMHookComponent.Create */ __fastcall virtual TAHMFormHook(Classes::TComponent* AOwner) : Ahmtformhook::
- TAHMHookComponent(AOwner) { }
- /* TAHMHookComponent.Destroy */ __fastcall virtual ~TAHMFormHook(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtformhook */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtformhook;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTFormHook
-